package lowMemoryUsage;

import engine.Tweet;

public class Tweet_LM {

    private VectorTI_LM vector;
    private Tweet.Polarity polarity;
    private Tweet.Brand brand;

    public Tweet_LM() {
        this.brand = null;
        this.polarity = null;
        this.vector = null;
    }

    public Tweet_LM(Tweet_LM t) {
        if (t != null) {
            this.brand = t.getBrand();
            this.polarity = t.getPolarity();
            this.vector = new VectorTI_LM(t.getVector());
        }
    }

    public VectorTI_LM getVector() {
        return vector;
    }

    public void setVector(VectorTI_LM vector) {
        this.vector = vector;
    }

    public Tweet.Polarity getPolarity() {
        return polarity;
    }

    public void setPolarity(Tweet.Polarity polarity) {
        this.polarity = polarity;
    }

    public Tweet.Brand getBrand() {
        return brand;
    }

    public void setBrand(Tweet.Brand brand) {
        this.brand = brand;
    }

    @Override
    public String toString() {
        return brand + ", " + polarity;
    }
}
